package org.tinygroup.earthworm.impl;

import org.tinygroup.earthworm.LogSupport;
import org.tinygroup.earthworm.RpcContext;

public class BaseLogSupport implements LogSupport{

	public String getLogMessage(String stage) {
		StringBuilder sb = new StringBuilder();
		sb.append("{");
		sb.append("support_type:BaseLogSupport").append(";");
		sb.append("module_type:").append(stage).append(";");
		sb.append("timestamp:").append(System.currentTimeMillis()).append(";");
		sb.append(RpcContext.get().toString());
		sb.append("}");
		return sb.toString();
	}
}
